FC=pgfortran
FCFLAGS=-fast -Minfo=all -ta=tesla

mandelbrot.x: mandelbrot.o main.o
	$(FC) $(FCFLAGS) -o $@ $^
mandelbrot_solution.x: mandelbrot.o main_solution.o
	$(FC) $(FCFLAGS) -o $@ $^

.SUFFIXES: .o .F90
.F90.o: 
	$(FC) $(FCFLAGS) -c -o $@ $<

.PHONY: clean
clean:
	rm -f *.o core *.lst *.ptx *.pgprof *.cubin *.s *.x *.mod
